Page({
  data: {
    date: '',
    show: false,
    time: '12:01',
    time1: '16:01'
  },

  onDisplay() {
    this.setData({ show: true });
  },
  onClose() {
    this.setData({ show: false });
  },
  formatDate(date) {
    date = new Date(date);
    return `${date.getMonth() + 1}/${date.getDate()}`;
  },
  onConfirm(event) {
    this.setData({
      show: false,
      date: this.formatDate(event.detail),
    });
  },
  timePickerchange(picker){
    console.log(picker);
    this.setData({
      time:picker.detail.value
    })
  }

});